#!/bin/sh
# After purge:
#  - Remove karaf user and group

set -e

purge_daemon_user() {
    deluser --system karaf
}

case "$1" in
    purge)
        purge_daemon_user
    ;;
    remove|upgrade|abort-upgrade|abort-remove|abort-deconfigure)
    ;;
esac

#DEBHELPER#

exit 0
